import request from '@/utils/request'

// 查询客户管理分页
export function getBsCustomerPage(query) {
  return request({
    url: '/bsCustomer/getPage',
    method: 'get',
    params: query
  })
}

// 查询客户管理列表
export function getBsCustomerList(query) {
  return request({
    url: '/bsCustomer/getList',
    method: 'get',
    params: query
  })
}

// 通过主键查询客户管理详细
export function getBsCustomerById(query) {
  return request({
    url: '/bsCustomer/getById',
    method: 'get',
    params: query
  })
}

// 新增或修改客户管理信息
export function addOrUpdateBsCustomer(data) {
  return request({
    url: '/bsCustomer/saveOrUpdate',
    method: 'post',
    data: data
  })
}

// 删除客户管理记录
export function delBsCustomer(ids) {
  return request({
    url: '/bsCustomer/deleteByIds/'+ids,
    method: 'delete',
  })
}

// 导出客户管理数据
export function exportBsCustomer(query) {
  return request({
    url: '/bsCustomer/export',
    method: 'get',
    params: query
  })
}

// 查看合同
export function queryContract(data) {
    return request({
        url: '/bsCustomer/queryContract',
        method: 'post',
        data: data
    })
}
